<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>eLeave</title>
</h:head>
<body>
	<f:view locale="#{language.locale}">
		<center>
			<h:form>
				<h:panelGrid width="1108px">
					<h:graphicImage value="../images/eLeave.jpg" />

					<h:panelGrid columns="2">

						<h:outputText value="#{msg['chooseLang']}: " />

						<h:selectOneMenu id="lang" value="#{language.lang}">
							<f:selectItem itemLabel="#{msg['en']}" itemValue="en" />
							<f:selectItem itemLabel="#{msg['zh_tw']}" itemValue="zh_tw" />
							<f:selectItem itemLabel="#{msg['zh_cn']}" itemValue="zh_cn" />
							<f:ajax event="change" execute="@form"
								listener="#{language.changeLang}" render="@all"></f:ajax>
						</h:selectOneMenu>

					</h:panelGrid>
				</h:panelGrid>
				<h:panelGrid columns="1">
					<h:commandButton action="#{entrance.go}" value="#{msg['enter']}" />
				</h:panelGrid>
			</h:form>
		</center>
	</f:view>
</body>
</html>

